#define MoveObjectScript
{
  if (keyboard_check(vk_left))
  {
    sprite_index = player_left;
    x -= 5;
    
    if (view_xview > 0) 
    {
        view_xview -= 5;
    }
  }
  
  if (keyboard_check(vk_right)) 
  {
    sprite_index = player_right;
    x += 5;
    view_xview += 5;
  }
  
  if (keyboard_check(vk_up))
  {
    y -= 5;
    
    if (view_yview > 0)
    {
        view_yview -= 5;
    }
  }
  
  if (keyboard_check(vk_down))
  {
    y += 5;
    view_yview += 5;
  }
}



